import FetchHelper from "../helper/fetch-helper";

export default class JcdHandle{
    static async jcdEditDynamicApi() {
        const dynamicForms = await FetchHelper.getJson(`${process.env.PUBLIC_URL}/datas/监测点基础详情编辑.json`)
        return dynamicForms;
    }  
    static async list(id) {
        const resp = await FetchHelper.getJson(`/admin-api/ybyj/jcd/`+id)
        return resp;
       
    }
    static async yq_list(id) {
        const resp = await FetchHelper.getJson(`/admin-api/ybyj/yqjc/`+id)
        return resp;
       
    }
    static async hd_list(id) {
        const resp = await FetchHelper.getJson(`/admin-api/ybyj/hdjc/`+id)
        return resp;
       
    }
    static async sk_list(id) {
        const resp = await FetchHelper.getJson(`/admin-api/ybyj/skjc/`+id)
        return resp;
       
    }
    static async hl_list(id) {
        const resp = await FetchHelper.getJson(`/admin-api/ybyj/hljc/`+id)
        return resp;
       
    }
    static async lqkk_list(id) {
        const resp = await FetchHelper.getJson(`/admin-api/ybyj/lqkkjcData/`+id)
        return resp;
       
    }
    static async gklwt_list(id) {
        const resp = await FetchHelper.getJson(`/admin-api/ybyj/gklwtjcData/`+id)
        return resp;
       
    }

    static async hd_look() {
        const dynamicForms = await FetchHelper.getJson(`${process.env.PUBLIC_URL}/datas/监测点查看.json`)
        return dynamicForms;
    }
    static async yq_look() {
        const dynamicForms = await FetchHelper.getJson(`${process.env.PUBLIC_URL}/datas/雨情监测点查看.json`)
        return dynamicForms;
    }
    static async sk_look() {
        const dynamicForms = await FetchHelper.getJson(`${process.env.PUBLIC_URL}/datas/水库监测点查看.json`)
        return dynamicForms;
    }
    static async hl_look() {
        const dynamicForms = await FetchHelper.getJson(`${process.env.PUBLIC_URL}/datas/洪涝监测点查看.json`)
        return dynamicForms;
    }
    static async lqkk_look() {
        const dynamicForms = await FetchHelper.getJson(`${process.env.PUBLIC_URL}/datas/林区卡口监测点查看.json`)
        return dynamicForms;
    }
    static async gklwt_look() {
        const dynamicForms = await FetchHelper.getJson(`${process.env.PUBLIC_URL}/datas/高空瞭望塔监测点查看.json`)
        return dynamicForms;
    }
  
    static async jcdAddDynamicApi(){
        const jcdAddDynamicForms=await FetchHelper.getJson(`${process.env.PUBLIC_URL}/datas/监测点新增.json`)
        return jcdAddDynamicForms;
    }
    //详情
    static async jcdXqDynamicApi(){
        const xqDatas=await FetchHelper.getJson(`${process.env.PUBLIC_URL}/datas/监测点基础详情小类编辑.json`)
        return xqDatas;
    }
}